<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="安装Mariabackup">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="mysql-0011.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
<meta name="DC.Publisher" content="20240320">
<meta name="documenttype" content="usermanual">
<meta name="prodname" content="csbs">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="mysql-0012">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>安装Mariabackup</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="mysql-0012"></a><a name="mysql-0012"></a>

<h1 class="topictitle1">安装Mariabackup</h1>
<div><p>MariaDB在执行备份任务前，需要在MariaDB所有节点手动安装Mariabackup。</p>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li id="mysql-0012__li1678375919578"><a name="mysql-0012__li1678375919578"></a><a name="li1678375919578"></a><span>登录MariaDB实例所在的主机，执行如下命令，查看是否已安装Mariabackup。</span><p><pre class="screen">mariabackup --version</pre>
<ul><li>如果有版本号回显，则表示已安装Mariabackup。</li><li>如果无版本号回显，则表示未安装Mariabackup。</li></ul>
</p></li><li><span>安装Mariabackup。</span><p><p>可以采用二进制包方式或者rpm包方式安装。</p>
<ul><li>二进制包方式安装Mariabackup。<ol type="a"><li>在MariaDB的安装目录下找到bin文件夹里的mariabackup命令。</li><li>执行如下命令，安装Mariabackup。<pre class="screen">ln -sf<strong> </strong><em>安装目录/</em>bin/mariabackup/usr/bin/</pre>
</li><li id="mysql-0012__li8241624154815">执行步骤<a href="#mysql-0012__li1678375919578">1</a>检查是否已安装Mariabackup。</li></ol>
</li><li>rpm包方式安装Mariabackup。<ol type="a"><li>执行如下命令，找到rpm包所在目录。<pre class="screen">find / -name 'MariaDB-backup*'</pre>
</li><li>执行如下命令，安装Mariabackup。<pre class="screen">rpm -ivh <em>rpm包目录/rpm包名</em></pre>
</li><li>执行步骤<a href="mysql-0012.html#mysql-0012__li1678375919578">1</a>检查是否已安装Mariabackup。</li></ol>
</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="mysql-0011.html">步骤3：手动安装备份工具</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>